<ul>				
{section name=id loop=$pages}
	<li {if $pages[id].page_url eq $smarty.request.page}id="current"{/if}>
	<a href="{if $pages[id].redirect eq 0}{$smarty.const.HTTP_URL}{$pages[id].page_url}.html{else}{$pages[id].to_url}{/if}" {if $pages[id].page_url eq $page}class="active"{/if} target="{if $pages[id].redirect eq 0}_self{else}_blank{/if}"><span>{$pages[id].page_name}</span></a>
	</li>
{/section}
</ul>